var str = "123";
console.log(str);
var num = 1;
console.log(num);
var con = true;
console.log(con);
var obj = {
    age: "18",
    name: "小明"
};
console.log(obj);
var yz = ["字符串", 123];
console.log(yz);
var fun = function (a, b) {
    return a + b;
};
console.log(fun);
console.log("数组去重");
var newArr = [11, 12, 13, 13, 14, 14, 15, 15];
var newBrr = [];
console.log("去重前", newArr);
newArr.forEach(function (item, index) {
    if (!newBrr.includes(item)) {
        newBrr.push(item);
    }
});
console.log("去重后", newBrr);
console.log("删除");
var arr1 = [1, 2, 3, 4, 5, 6];
console.log(arr1);
arr1.forEach(function (item, index) {
    if (index == 4) {
        arr1.splice(item, 1);
    }
});
console.log(arr1);
console.log("添加");
var arr2 = [1, 2, 3, 4, 5, 6];
console.log(arr2);
arr2.push(7);
console.log(arr2);
var myPush = function () {
    var arr = arguments[0];
    for (var i = 1; i < arguments.length; i++) {
        arr[arr.length] = arguments[i];
    }
    console.log(arr);
    return arr.length;
};
console.log(myPush);
// console.log("二维转一维");
// let array:number[][]=[[1,2,3,4]]
// console.log(array);
// let array: ArrayKeyAny[] = [ [ "123" : 123 ] ]
var array = [["a", "b"], ["c", "d", "e"], ["f"]];
function twoToOne() {
    var arrs = [];
    for (var j = 0; j < arrs.length; j++) {
        arrs.push(j);
    }
}
